﻿using System;
namespace 手机项目;
class Program
{
    static void Main()
    {
        Phone[] phones = new Phone[3];
        phones[0] = new Phone("小陆", "iPhone 12 Promax 256G 石墨灰", "19827058820");
        phones[1] = new Phone("朱佳瑞", "BlackShark5Pro 16G 512G 天宫白", "13186562083");
        phones[2] = new Phone("小陆", "iPhone 12 Promax 256G 石墨灰", "19952466390");
        phones[3] = new Phone();
        // for (int i = 0; i < phones.Length; i++)
        // {
        //     phones[i] = new Phone();
        // }

        // phones[0].owner = "朱佳瑞";
        // phones[0].type = "BlackShark5Pro 16G 512G 天宫白";
        // phones[0].number = "13186562083";

        // phones[1].owner = "小陆";
        // phones[1].type = "Iphone 12 Pro Max 256G 石墨灰";
        // phones[1].number = "19827058820";

        // phones[2].owner = "喻佳伟";
        // phones[2].type = "vivo iqoo new 5 12G+256G 暗夜黑";
        // phones[2].number = "19952466390";
        for (int i = 0; i < phones.Length; i++)
        {
            Console.WriteLine(phones[i].获取信息());
        }
    }
}
